<?php

namespace addons\zzyy\controller\api;


use app\admin\model\zzyy\ZzyySetting;

class Setting extends \app\common\controller\Api
{
    protected $noNeedLogin = ['*'];

    public function config()
    {
        $config = [
            'rent_reserve_advance_day' => ZzyySetting::getRentReserveAdvanceDay(),
            'rent_at_least_min' => ZzyySetting::getRentAtLeastMin(),
            'rent_refund' => ZzyySetting::getRentRefund(),
            'unlock_inadvance_min' => ZzyySetting::getUnlockInadvanceMin(),
//            'default_store_id' => ZzyySetting::getDefaultStoreId(),
            'pay_countdown_sec' => ZzyySetting::getPayCountdownSec(),
        ];
        $this->success('ok', $config);
    }

}
